
#ifndef __SERIALDATAMAN_H__
#define __SERIALDATAMAN_H__

#include "common.h"

typedef enum {
	SDM_FRAMETYPE_NA,
	SDM_FRAMETYPE_FIXLEN,
	SDM_FRAMETYPE_MATCHEND,
} SDM_FRAMTYPE;

#ifdef SDCC
typedef void (*SDM_CALLBACK)(uchar *pointer, uchar len) __reentrant;
#else
typedef void (*SDM_CALLBACK)(uchar *pointer, uchar len);
#endif
void SDM_QUERY();
void SDM_INIT();
bool SDM_REGISTER(SDM_FRAMTYPE type, uchar dat, SDM_CALLBACK callback, uint *timer, uint timeout);

#endif /* __SERIALDATAMAN_H__ */
